package com.supreme.aspectserver.service;

import com.supreme.aspectserver.annotation.RecorderAnno;
import com.supreme.aspectserver.service.recorder.CreateRecorder;
import com.supreme.aspectserver.service.recorder.UpdateRecorder;
import org.springframework.stereotype.Service;

@Service
public class RecordService {

    @RecorderAnno(desc = "create", recorder = CreateRecorder.class)
    public void createRecord(String message) {
        System.out.println("createRecord = " + message);
    }

    @RecorderAnno(desc = "update", recorder = UpdateRecorder.class)
    public void updateRecord(String message) {
        System.out.println("updateRecord = " + message);
    }

    public void createRecordCall(String message) {
        this.createRecord(message);
    }
}
